using System;
using System.IO;

namespace RStein.Posterous.API
{
    internal class MediaStreamInfo
    {
        private readonly Stream m_stream;
        private readonly string m_mediaName;
        private readonly Action<Stream> m_disposeFunction;

        public Stream Stream
        {
            get
            {
                return m_stream;
            }
        }

        public string MediaName
        {
            get
            {
                return m_mediaName;
            }
        }

        public Action<Stream> DisposeFunction
        {
            get
            {
                return m_disposeFunction;
            }
        }

        public MediaStreamInfo(Stream stream, string mediaName, Action<Stream> disposeFunction)
        {
            m_stream = stream;
            m_mediaName = mediaName;
            m_disposeFunction = disposeFunction;
        }
    }

}